$(() => {
    let article_id = GetQueryString("article_id");
    let article_code = GetQueryString("article_code");

    $.ajax({
        type: "post",
        url: url,
        data: { 'method': 'Api|article_detail', 'article_id': article_id, 'article_code': article_code },
        dataType: 'json',
        success: function(res) {
            if (res.status == 1) {
                let data = res.data;
                let html = '';
                $('.hetitle').html(data.title);
                html = `${data.content}`;
                console.log(html);
                $('.textMain').html(html);
            }
        }
    })
})